#pragma once

#include "ClientThread.h"

class Client;

class ThreadCtrl : public ClientThread {
public:
	ThreadCtrl(Client* cli);
	virtual void run();

private:
	void PickingBlock();
	bool intersectaab(ge_Vector3f min, ge_Vector3f max, ge_Vector3f rorig, ge_Vector3f rdir, float* t);
	void swap(float* a, float* b);
	Client* client;
	bool running;
	float speed;
	u32 ticks;
	u32 ticksLastForward;
	u32 ticksLastJump;
	double t;
	double dt;
};
